package com.captcha.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "captcha")
public class CaptchaProperties {
    // 验证码宽度
    private Integer width;
    // 验证码高度
    private Integer height;
    // 验证码会话
    private Session session;
    @Data
    public static class Session{
        // 验证码
        private String code;
        // 验证码起始日期
        private String Date;
    }
}
